<script setup>
import { onMounted } from 'vue'
onMounted(() => {
})
</script>

<template>
  <router-view v-slot="{ Component, route }">
    <keep-alive>
      <component
        :is="Component"
        :key="route.path"
        v-if="route.meta.keepAlive"
      />
    </keep-alive>
    <component :is="Component" v-if="!route.meta.keepAlive" />
  </router-view>
</template>

<style lang="less">
ol {
  padding-left: 0.5rem;
  list-style: auto;
}
ul {
  padding-left: 0.5rem;
  list-style: disc;
}
/* 定义动画效果 */
.fade-enter-active,
.fade-leave-active {
  transition: opacity 0.5s;
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}
#refpop {
  max-height: 70%;
  padding: 0.7rem 0.2rem 0;
  border-radius: 0.3rem 0.3rem 0 0;
  display: flex;
  flex-direction: column;

  .info {
    flex: 1;
    overflow: auto;
    padding-bottom: 0.5rem;
    white-space: pre-wrap;

    p {
      line-height: 1.5;
      font-size: 0.24rem;
    }

    img {
      width: 100%;
      height: auto;
    }
  }

  .van-icon {
    font-size: 0.4rem;
    top: 0.2rem;
    right: 0.3rem;
  }
}
#evalutepop {
  top: 40%;
  width: 6.04rem;
  border-radius: 0.18rem;
  padding: 0.32rem;
  padding-top: 1rem;
  .btn {
    width: 3.76rem;
    height: 0.62rem;
    margin: 0 auto;
    line-height: 0.62rem;
    color: #fff;
    font-size: 0.22rem;
    text-align: center;
    border-radius: 0.33rem;
    background: #5496f2;
  }
  .form {
    margin-bottom: 0.4rem;
    .tags {
      font-size: 0.24rem;
      display: flex;
      flex-wrap: wrap;
      margin-bottom: 0.32rem;
      .tag {
        background-color: #f4f4f4;
        border-radius: 0.4rem;
        padding: 0.2rem 0.4rem;
        margin-right: 0.2rem;
        margin-bottom: 0.2rem;
        cursor: pointer;
      }
      .active {
        background-color: #4890c9;
        color: white;
      }
    }
    .item {
      color: #c9c9cc;
      font-size: 0.24rem;
      input {
        width: 100%;
        height: 0.7rem;
        border: none;
        border-bottom: 1px solid #c9c9cc;
        color: #222;
      }
    }
  }
}
.van-overlay {
  background-color: rgba(0, 0, 0, 0.5);
}
</style>
